package com.hhy.hhy_weibo.serviec;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hhy.hhy_weibo.model.domain.BmsComment;
import com.hhy.hhy_weibo.model.domain.UmsUser;
import com.hhy.hhy_weibo.model.dto.CommentDTO;
import com.hhy.hhy_weibo.model.vo.CommentVO;


import java.util.List;


public interface IBmsCommentService extends IService<BmsComment> {
    /**
     *
     *
     * @param topicid
     * @return {@link BmsComment}
     */
    List<CommentVO> getCommentsByTopicID(String topicid);

    BmsComment create(CommentDTO dto, UmsUser principal);

    BmsComment childcreate(CommentDTO dto, UmsUser principal);

    List<BmsComment> getallcomments();
}
